package com.blank.shop.ribbon.consumer;

import com.blank.shop.ribbon.ShopRibbonApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.netflix.ribbon.RibbonClient;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.FilterType;
import org.springframework.context.annotation.Profile;

/**
 * <br/>Date 2021/8/31
 * <br/>Time 16:54:05
 *
 * @author _blank
 */
@EnableDiscoveryClient
@RibbonClient(name = ShopRibbonApplication.SERVER_PROVIDER_NAME, configuration = {MyRibbonClientRule.class})
@ComponentScan(excludeFilters = {@ComponentScan.Filter(type = FilterType.ASSIGNABLE_TYPE, classes = {MyRibbonClientRule.class})})
@Profile({ShopRibbonApplication.SERVER_CONSUMER})
public class RibbonConfig {
}
